package com.ruoyi.eqmonitor.smdtv.mapper;

import com.ruoyi.eqmonitor.smdtv.domain.Smregister;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.eqmonitor.smdtv.vo.SmregisterVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author YR
* @description 针对表【smregister】的数据库操作Mapper
* @createDate 2022-12-13 21:45:11
* @Entity com.ruoyi.eqmonitor.smdtv.domain.Smregister
*/
public interface SmregisterMapper extends BaseMapper<Smregister> {

    List<SmregisterVo> getAll();

    List<Map<String,Object>> getSmdtv(@Param("smtablename") String smtablename, @Param("name") String name);

    String getTableNameByDatasetName(String datasetName);

    int removeByIds( @Param("ids")List<Long> ids, @Param("tableName") String tableName);

    Long getSum(@Param("name")String name,@Param("tableName")String tableName);

    Integer selectCount(@Param("tableName")String tableName,@Param("whereSQL")String whereSQL);

}




